/******************************************************************************
 Copyright (c) 2024-2025 Qualcomm Technologies International, Ltd.
 All Rights Reserved.
 Qualcomm Technologies International, Ltd. Confidential and Proprietary.

******************************************************************************/

#ifndef GATT_RAS_SERVER_ACCESS_H_
#define GATT_RAS_SERVER_ACCESS_H_

#include "gatt_ras_server_private.h"
#ifdef INSTALL_CHANNEL_SOUNDING_SUPPORT

/***************************************************************************
NAME
    handleRasServerAccessInd

DESCRIPTION
    Handle the access indications that were sent
    to the RAS Server library.
*/
void handleRasServerAccessInd(GRASS_T *rasSrver,
    const GATT_MANAGER_SERVER_ACCESS_IND_T *access_ind);


uint8 rasServerGetCidIndex(const GRASS_T *rasSrver, connection_id_t cid);

void sendRasServerAccessRsp(CsrBtGattId task,
                                  connection_id_t cid,
                                  uint16 handle,
                                  uint16 result,
                                  uint16 size_value,
                                  uint8 *const value);

void rasServerNotifyToApp(GRASS_T  *const rasSrver,
                                connection_id_t cid,
                                GattRasServerOperation operation,
                                uint16 rangingCounter,
                                uint8 startSegment,
                                uint8 endSegment);

#endif /* INSTALL_CHANNEL_SOUNDING_SUPPORT */
#endif /* GATT_RAS_SERVER_ACCESS_H_ */
